<%--
  Created by IntelliJ IDEA.
  User: wzx
  Date: 2020/10/14
  Time: 9:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
 表单 只会将多条记录放到一个list里面，提交到后台
--%>
        <form method="post" action="${pageContext.request.contextPath}/update3.action">
            <table>
                <tr>
                    <td><input type="hidden" value="1" name="list[0].id" /></td>
                    <td><input type="text" value="jack" name="list[0].username" /></td>
                    <td><input type="text" value="1234" name="list[0].password" /></td>
                </tr>
                <tr>
                    <td><input type="hidden" value="2" name="list[1].id" /></td>
                    <td><input type="text" value="rose" name="list[1].username" /></td>
                    <td><input type="text" value="1234" name="list[1].password" /></td>
                </tr>
            </table>
            <input type="submit" value="提交数据到后台" > <br/>
        </form>
</body>
</html>
